package com.team7.home.controller.apiController;


import com.team7.common.vo.CommonResult;
import com.team7.home.service.HeadNavService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home/qian/head")
@Api
public class ApiHeadNavController {

    @Autowired
    private HeadNavService headNavService;

    /**
     * 获取所有的头部导航栏
     */
    @GetMapping("getAllHead")
    private CommonResult getAllHead(){
        return headNavService.getAllHead();
    }
}
